const path = require("path");
function resolve (dir) {
    return path.join(__dirname, dir)
}

module.exports = {
    devServer: {
        proxy:{
            "/api": {
                target: "http://www.wyyijiaqin.com",
                pathRewrite: { '^/api': '' },
                changeOrigin: true,
            }
        } 
    },
    chainWebpack: config=>{
        config.resolve.alias
            .set('$abc', resolve('src/components/a'))
    }
}